{template '_header'}
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
	<div class="fui-header-left">
	    <a class="back"></a>
	</div>
	<div class="title">订单兑换</div>
	<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content navbar'>

	<div class='fui-list-group'>
	    <div class='fui-list order-status'>

		<div class='fui-list-inner'>
		    <div class='title'>{$log['logno']}</div>
		    <div class='text'>订单金额: &yen;<span>{$goods['money']}</span>{$goods['credit']}</div>
		</div>
	    </div>
	</div>

	{if !empty($carrier) ||!empty($store)}

	<div class='fui-list-group' style='margin-top:5px;'>

	    <div class='fui-list'>
		<div class='fui-list-media'><i class='icon icon-person2'></i></div>
		<div class='fui-list-inner'>
		    <div class='title'>{$log['realname']} {$log['mobile']}</div>
		</div>
	    </div>
	    {if !empty($store)}
	    <div class='fui-list'>
		<div class='fui-list-media'><i class='icon icon-shop'></i></div>
		<div class='fui-list-inner'>
		    <div class='title'>{$store['storename']}</div>
		</div>
	    </div>
	    {/if}
	</div>
	{/if}

	<div class="fui-list-group goods-list-group">  

	    <div class="fui-list-group-title"><i class="icon icon-shop"></i> {$_W['shopset']['shop']['name']}</div>


	    <a href="{php echo mobileUrl('creditshop/detail',array('id'=>$goods['id']))}">

		<div class="fui-list goods-list">
		    <div class="fui-list-media">
			<img src="{php echo tomedia($goods['thumb'])}" class="round">
		    </div>
		    <div class="fui-list-inner">
			<div class="text goodstitle">{$goods['title']}</div>
			{if !empty($goods['optionid'])}<div class='subtitle'>{$goods['optiontitle']}</div>{/if}
		    </div>
		    <div class='fui-list-angle'>
				￥<span class='marketprice'>{$goods['money']}{$goods['credit']}<br/>   x1
		    </div>

		</div>
	    </a>
	</div>
	{if $goods['verifytype']==0}
	<div class='fui-cell-group'>
	    <div class='fui-cell'>
		<div class='fui-cell-label'>消费码</div>
		<div class='fui-cell-info'></div>
		<div class='fui-cell-remark noremark'>{$log['eno']}</div>
	    </div>
	</div>
	{elseif $goods['verifytype']==1}

	<div class='fui-cell-group'>
	    <div class='fui-cell'>
		<div class='fui-cell-label' style='width:auto;'>使用次数 (剩余 <span class='text-danger'>{$lastverifys}</span> 次)</div>
		<div class='fui-cell-info'></div>
		<div class='fui-cell-remark noremark'>
		    <div class="fui-number" 
			 data-value='1'
			 data-max="{$lastverifys}" 
			 data-min="1">
			<div class="minus">-</div>
			<input class="num shownum" type="tel" name="" value="1"/>
			<div class="plus ">+</div>
		    </div>
		</div>
	    </div>
	</div>
	{/if}



    </div>
    <div class='fui-footer'>
	<div class="btn btn-danger order-verify block" data-orderid="{$log['id']}" data-verifytype="{$log['eno']}">
	    <i class="icon icon-check"></i> 
	    <span>确定使用</span>
	</div>

    </div>
    <script language='javascript'>require(['../addons/ewei_shopv2/plugin/creditshop/static/js/verify.js'], function (modal) {
                modal.init();
            });</script>
</div>
{template '_footer'}